# -*- coding:utf-8 -*-
# @Time:2024/4/1921:01
# @Author:miuzg
# @FileName:new test2.py
# @Software:PyCharm

# 普通for循环只能取数据
li = [1, 'mizug', 100]
num = 0
for i in li:
    print(i, num)
    num += 1

# enum可以取数据+输出下标
for index, i in enumerate(li):
    print(i, index)
